package edu.sctu.fengleilin.month05.day150521;

/**
 * Created by user09 on 2015/5/21.
 */
public class RunAddClass {
    public static void main(String[] args) {

        AddClass p1 = new AddClass(2, 3, 5);
        AddClass p2 = new AddClass(10, 20);
        AddClass p3 = new AddClass(1);

        System.out.println("x + y + z =" + p1.add());
        System.out.println("x + y =" + p2.add());
        System.out.println("x = " + p3.add());
    }
}
